$(function(){
    // 生成盒子
    const height=$('.img').offset().top
    const left=$('.img').offset().left
    console.log(height,left)
    $('.img').mouseover(function(){
        $('.zhezhao').css('display','none')
        $('.zhezhao1').css('display','block')
    })
    $('.img').mouseout(function(){
        $('.zhezhao1').css('display','none')
        $('.zhezhao').css('display','block')
    })
    $('.img').mousemove(function(e){
           
        const x=e.pageX
        const y=e.pageY
    console.log(x,y)
    const leftle=-x+left+'px'
    const tople=-y+height+'px'
    console.log(tople,leftle)
    $('.zhezhao1').css('top',tople)
    $('.zhezhao1').css('left',leftle)
   })
})